home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Devices / PACKman C / FOR MPW / Chooser.r next >
Encoding:
Text File  |  1994-10-28  |  3.7 KB  |  103 lines  |  [TEXT/MPS ]

  1. #include "SysTypes.r"
  2. #include "Types.r"
  3.  
  4. /*---------------------------GNRL • NBP retry information ----------------------*/
  5. /*     This resource holds two values needed for an NBP retry, the retry interval,
  6.     and the retry count.
  7. */
  8. type 'GNRL' {
  9.     byte;    /* NBP retry interval    */
  10.     byte;    /* NBP retry count        */
  11. };
  12.  
  13. /*--------------------------PACK • Chooser Device Package ----------------------*/
  14. type 'PACK' {
  15.     unsigned hex integer = $600E;                    /* BRA.S *+$10                */
  16.     integer;                                        /* Device ID                */
  17.     unsigned hex longint = $5041434B;                /* 'PACK'                    */
  18.     unsigned hex integer = $F000;                    /* -4096                    */
  19.     integer;                                        /* Version                    */
  20.     boolean        noAppleTalk, usesAppleTalk;
  21.     boolean        noPAP, usesPAP;
  22.     boolean        noPostScript, usesPostScript;
  23.     boolean        noMultiples, usesMultiples;
  24.     boolean        noLeftButton, usesLeftButton;
  25.     boolean        noRightButton, usesRightButton;
  26.     boolean        usesSavedZoneName, noSavedZoneName;
  27.     boolean        noActualZoneNames, usesActualZoneNames;
  28.     fill bit[6];                                    /* Reserved (clear to zero)    */
  29.     boolean        ignoresInit, acceptsInit;
  30.     boolean        ignoresNewSel, acceptsNewSel;
  31.     boolean        ignoresFillList, acceptsFillList;
  32.     boolean        ignoresGetSel, acceptsGetSel;
  33.     boolean        ignoresSelect, acceptsSelect;
  34.     boolean        ignoresDeselect, acceptsDeselect;
  35.     boolean        ignoresTerminate, acceptsTerminate;
  36.     fill bit[11];                                    /* Reserved (clear to zero)    */
  37.     hex string;                                        /* Start of driver code    */
  38. };
  39.  
  40.  
  41. /*********
  42. resource 'GNRL' (-4096) {
  43.     11,
  44.     5
  45. };
  46.  
  47. resource 'PACK' (-4096, purgeable) {
  48.     3,
  49.     2,
  50.     usesAppleTalk,
  51.     noMultiples,
  52.     noLeftButton,
  53.     noRightButton,
  54.     usesSavedZoneName,
  55.     noActualZoneNames,
  56.     ignoresNewSel,
  57.     ignoresFillList,
  58.     acceptsGetSel,
  59.     acceptsSelect,
  60.     acceptsDeselect,
  61.     ignoresTerminate,
  62.     $"4E 56 00 00 48 E7 1C 38 24 6E 00 0C 42 6E 00 1C"
  63.     $"30 2E 00 1A 04 40 00 0B D0 40 30 3B 00 06 4E FB"
  64.     $"00 02 00 16 00 12 00 12 00 98 01 90 01 DA 00 12"
  65.     $"00 12 01 EA 60 00 02 2A 61 00 00 FA 24 6E 00 14"
  66.     $"4A 78 02 8E 6B 4C 30 3C A8 8F A1 46 22 08 30 3C"
  67.     $"A8 9F A1 46 B2 88 67 3A 20 38 02 82 67 08 0C 80"
  68.     $"FF FF FF FF 66 2C 20 38 0B 64 67 26 0C 80 FF FF"
  69.     $"FF FF 67 1E 20 40 20 50 4A 28 00 02 6A 14 61 00"
  70.     $"01 B2 2F 2A 00 0A A9 57 2F 2A 00 0E A9 57 60 00"
  71.     $"01 64 20 2A 00 0A 2F 00 2F 00 42 67 A9 63 3F 3C"
  72.     $"00 FF A9 5D 20 2A 00 0E 2F 00 2F 00 3F 3C 00 01"
  73.     $"A9 63 3F 3C 00 FF A9 5D 60 C8 61 00 00 86 76 00"
  74.     $"22 4C 70 00 10 19 D2 C0 10 19 D2 C0 20 6E 00 10"
  75.     $"10 18 48 40 10 19 A0 3C 67 02 50 C3 20 52 38 28"
  76.     $"00 4C 53 44 6B 4A 59 4F 2F 0F 48 6F 00 06 42 67"
  77.     $"3F 04 2F 0A 3F 3C 00 34 A9 E7 34 1F 30 1F 1F 3C"
  78.     $"00 01 4A 43 66 18 22 4C 20 52 20 68 00 50 20 50"
  79.     $"41 F0 20 00 48 40 42 40 10 19 A0 3C 67 02 42 57"
  80.     $"42 67 3F 04 2F 0A 3F 3C 00 5C A9 E7 53 44 60 B4"
  81.     $"60 00 01 2E 20 3C 50 52 45 43 32 3C 00 7F 74 04"
  82.     $"60 0C 20 3C 50 41 50 41 32 3C E0 00 74 67 48 E7"
  83.     $"07 00 2A 00 3C 01 2E 02 59 4F 2F 05 3F 06 4A 78"
  84.     $"02 8E 6B 08 A8 1F 22 1F 67 16 60 28 A9 A0 22 1F"
  85.     $"67 0E 55 4F 2F 01 A9 A4 30 1F B0 78 0A 5A 67 14"
  86.     $"20 07 A3 22 26 48 2F 0B 2F 05 3F 06 48 7A 00 E0"
  87.     $"A9 AB 60 12 26 41 20 4B A0 25 B0 87 67 08 20 07"
  88.     $"A0 24 2F 0B A9 AA 20 4B A0 29 28 53 4C DF 00 E0"
  89.     $"4E 75 61 8E 20 6E 00 14 61 00 00 98 59 4F 3F 3C"
  90.     $"F0 00 A9 BA 20 1F 66 06 41 FA 00 A4 60 04 20 40"
  91.     $"20 50 61 00 00 7E 20 6E 00 10 61 00 00 76 41 EE"
  92.     $"00 08 18 D8 18 D8 18 D8 18 98 2F 0B A9 AA 3F 38"
  93.     $"0A 5A A9 99 20 4B A0 2A 60 00 00 66 61 00 FF 44"
  94.     $"30 3C 00 66 42 1C 51 C8 FF FC 60 DE 61 00 FF 26"
  95.     $"24 6E 00 14 10 2E 00 0B 0C 00 00 03 67 0C 0C 00"
  96.     $"00 04 66 0C 08 D4 00 07 60 04 08 94 00 07 61 02"
  97.     $"60 B8 2F 2A 00 0E 70 01 08 14 00 07 66 02 70 00"
  98.     $"3F 00 2F 2A 00 0A 08 40 00 00 3F 00 A9 63 A9 63"
  99.     $"4E 75 70 00 10 10 52 00 22 4C D8 C0 A0 2E 4E 75"
  100.     $"4C DF 1C 38 4E 5E 20 5F DE FC 00 14 4E D0 00 00"
  101. };
  102.  
  103. *************/